var NWW,NMWW;
function openWin(p_url,p_Opt)
{	
    var winOpt="toolbar=no,location=no,directories=no,statusbar=no,scrollbars=yes,resizable=yes,copyhistory=no,";
	w=window.screen.width;
	h=window.screen.height;
	if(p_Opt==null)p_Opt=" ";
	if(p_Opt.length>10)p_Opt=winOpt+p_Opt
	  else p_Opt=winOpt+"top="+(h-570)+",left="+(w-690)+",width=680,height=520,titlebar=no";
	if(NWW!=null)if(!NWW.closed)NWW.close();
	NWW=window.open(p_url,"childwin",p_Opt);
	try{NWW.focus()} catch(e) {}
}
function openMinWin(p_url,p_Opt)
{	
    var winOpt="toolbar=no,location=no,directories=no,statusbar=no,scrollbars=yes,resizable=yes,copyhistory=no,";
	w=window.screen.width;
	h=window.screen.height;
	if(p_Opt==null)p_Opt=" ";
	if(p_Opt.length>10)p_Opt=winOpt+p_Opt
	  else p_Opt=winOpt+"top="+(h-570)+",left="+(w-690)+",width=680,height=500,titlebar=no";
	if(NMWW!=null)if(!NMWW.closed)NMWW.close();
	NMWW=window.open(p_url,"childminwin",p_Opt);
	try{NMWW.focus()} catch(e) {}
}
function fgetdate()
{
	var x=new Date()
	return(x.getYear()+'-'+(x.getMonth()+1)+'-'+x.getDate());
}
function fgetdatetime()
{
	var x=new Date()
	return(x.getYear()+'-'+(x.getMonth()+1)+'-'+x.getDate()+' '+x.getHours()+':'+x.getMinutes());
}

if (typeof(top.imgWait)=='object'){top.imgWait.style.display='block'}

function fhideicon()
{
  if(opener&&typeof(top.directTitle)=='object')
  {var r=top.directTitle.parentElement.parentElement;r.cells(r.cells.length-1).style.display='none'}
}
attachEvent('onload',fhideicon);

function fhidewait()
{
 try {top.imgWait.style.display='none'} catch(e){}
 try {opener.top.imgWait.style.display='none'} catch(e){}
}

attachEvent('onload',fhidewait);

if(parent==top&&typeof(top.directTitle)=='object') {top.directTitle.innerHTML=''}
